import React from "react";
import lazyLoad from "@/routers/utils/lazyLoad";
import { LayoutIndex } from "@/routers/constant";
import { RouteObject } from "@/routers/interface";

// echarts 模块
const optimizationRouter: Array<RouteObject> = [
    {
        element: <LayoutIndex />,
        meta: {
            title: "optimization"
        },
        children: [
            {
                path: "/optimization/fatherWatchSonWatch",
                element: lazyLoad(React.lazy(() => import("@/views/optimization/fatherWatchSonWatch/index"))),
                meta: {
                    requiresAuth: true,
                    title: "父组件更新导致子组件更新",
                    key: "fatherWatchSonWatch"
                }
            },
        ]
    }
];

export default optimizationRouter;
